home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / t-bcinfo.zip / TI654.ZIP / TI654.ASC
Text File  |  1992-02-25  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Borland C++                            NUMBER  :  654
  9.   VERSION  :  All
  10.        OS  :  PC DOS
  11.      DATE  :  February 25, 1992                        PAGE  :  1/1
  12.  
  13.     TITLE  :  Problem Closing an MDI Application?
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.   PROBLEM:  Attempts to close an MDI application from a menu while
  21.             the MDI application is iconized fail.
  22.  
  23.  
  24.  
  25.   SOLUTION: An icon is actually two windows--the normal icon and an
  26.             "icon title" window which is owned by the system, not
  27.             by the application. When an MDIDESTROY message is sent
  28.             to an iconized MDI window, the icon (ie, the window) is
  29.             destroyed, but the title window is only hidden, not
  30.             destroyed.  The solution is to send the icon a
  31.             WM_MDIRESTORE message, and then a WM_MDIDESTROY.  If
  32.             you don't want this to be visible, call
  33.             ShowWindow(hWnd, SW_HIDE) to hide the window first.
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.